Optimal. Leaf size=115 \[ \frac {65 x+4}{1364 \left (5 x^2+3 x+2\right )^2}+\frac {21605 x+7923}{465124 \left (5 x^2+3 x+2\right )}-\frac {\log \left (2 x^2-x+3\right )}{21296}+\frac {\log \left (5 x^2+3 x+2\right )}{21296}-\frac {45 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{10648 \sqrt {23}}+\frac {847793 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{10232728 \sqrt {31}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 115, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {974, 1060, 1072, 634, 618, 204, 628} \[ \frac {65 x+4}{1364 \left (5 x^2+3 x+2\right )^2}+\frac {21605 x+7923}{465124 \left (5 x^2+3 x+2\right )}-\frac {\log \left (2 x^2-x+3\right )}{21296}+\frac {\log \left (5 x^2+3 x+2\right )}{21296}-\frac {45 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{10648 \sqrt {23}}+\frac {847793 \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{10232728 \sqrt {31}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rule 974
Rule 1060
Rule 1072
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )^3} \, dx &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}-\frac {\int \frac {-5753+3509 x-4290 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )^2} \, dx}{15004}\\ &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}+\frac {7923+21605 x}{465124 \left (2+3 x+5 x^2\right )}-\frac {\int \frac {-14522420+3833038 x-10456820 x^2}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx}{112560008}\\ &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}+\frac {7923+21605 x}{465124 \left (2+3 x+5 x^2\right )}-\frac {\int \frac {-58838186+5116364 x}{3-x+2 x^2} \, dx}{27239521936}-\frac {\int \frac {-1132249756-12790910 x}{2+3 x+5 x^2} \, dx}{27239521936}\\ &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}+\frac {7923+21605 x}{465124 \left (2+3 x+5 x^2\right )}-\frac {\int \frac {-1+4 x}{3-x+2 x^2} \, dx}{21296}+\frac {\int \frac {3+10 x}{2+3 x+5 x^2} \, dx}{21296}+\frac {45 \int \frac {1}{3-x+2 x^2} \, dx}{21296}+\frac {847793 \int \frac {1}{2+3 x+5 x^2} \, dx}{20465456}\\ &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}+\frac {7923+21605 x}{465124 \left (2+3 x+5 x^2\right )}-\frac {\log \left (3-x+2 x^2\right )}{21296}+\frac {\log \left (2+3 x+5 x^2\right )}{21296}-\frac {45 \operatorname {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )}{10648}-\frac {847793 \operatorname {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )}{10232728}\\ &=\frac {4+65 x}{1364 \left (2+3 x+5 x^2\right )^2}+\frac {7923+21605 x}{465124 \left (2+3 x+5 x^2\right )}-\frac {45 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{10648 \sqrt {23}}+\frac {847793 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{10232728 \sqrt {31}}-\frac {\log \left (3-x+2 x^2\right )}{21296}+\frac {\log \left (2+3 x+5 x^2\right )}{21296}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 104, normalized size = 0.90 \[ \frac {31 \left (-961 \log \left (2 x^2-x+3\right )+961 \log \left (5 x^2+3 x+2\right )+\frac {44 \left (108025 x^3+104430 x^2+89144 x+17210\right )}{\left (5 x^2+3 x+2\right )^2}\right )+1695586 \sqrt {31} \tan ^{-1}\left (\frac {10 x+3}{\sqrt {31}}\right )}{634429136}+\frac {45 \tan ^{-1}\left (\frac {4 x-1}{\sqrt {23}}\right )}{10648 \sqrt {23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.02, size = 177, normalized size = 1.54 \[ \frac {3388960300 \, x^{3} + 38998478 \, \sqrt {31} {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + 2681190 \, \sqrt {23} {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + 3276177960 \, x^{2} + 685193 \, {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )} \log \left (5 \, x^{2} + 3 \, x + 2\right ) - 685193 \, {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )} \log \left (2 \, x^{2} - x + 3\right ) + 2796625568 \, x + 539912120}{14591870128 \, {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 88, normalized size = 0.77 \[ \frac {847793}{317214568} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {45}{244904} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {108025 \, x^{3} + 104430 \, x^{2} + 89144 \, x + 17210}{465124 \, {\left (5 \, x^{2} + 3 \, x + 2\right )}^{2}} + \frac {1}{21296} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{21296} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 89, normalized size = 0.77 \[ \frac {847793 \sqrt {31}\, \arctan \left (\frac {\left (10 x +3\right ) \sqrt {31}}{31}\right )}{317214568}+\frac {45 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{244904}-\frac {\ln \left (2 x^{2}-x +3\right )}{21296}+\frac {\ln \left (5 x^{2}+3 x +2\right )}{21296}+\frac {\frac {108025}{465124} x^{3}+\frac {52215}{232562} x^{2}+\frac {2026}{10571} x +\frac {8605}{232562}}{\left (5 x^{2}+3 x +2\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 98, normalized size = 0.85 \[ \frac {847793}{317214568} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) + \frac {45}{244904} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {108025 \, x^{3} + 104430 \, x^{2} + 89144 \, x + 17210}{465124 \, {\left (25 \, x^{4} + 30 \, x^{3} + 29 \, x^{2} + 12 \, x + 4\right )}} + \frac {1}{21296} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{21296} \, \log \left (2 \, x^{2} - x + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.18, size = 115, normalized size = 1.00 \[ \frac {\frac {4321\,x^3}{465124}+\frac {10443\,x^2}{1162810}+\frac {2026\,x}{264275}+\frac {1721}{1162810}}{x^4+\frac {6\,x^3}{5}+\frac {29\,x^2}{25}+\frac {12\,x}{25}+\frac {4}{25}}+\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {1}{21296}+\frac {\sqrt {23}\,45{}\mathrm {i}}{489808}\right )-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {1}{21296}+\frac {\sqrt {31}\,847793{}\mathrm {i}}{634429136}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {1}{21296}+\frac {\sqrt {31}\,847793{}\mathrm {i}}{634429136}\right )-\ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {1}{21296}+\frac {\sqrt {23}\,45{}\mathrm {i}}{489808}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.36, size = 119, normalized size = 1.03 \[ \frac {108025 x^{3} + 104430 x^{2} + 89144 x + 17210}{11628100 x^{4} + 13953720 x^{3} + 13488596 x^{2} + 5581488 x + 1860496} - \frac {\log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{21296} + \frac {\log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{21296} + \frac {45 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{244904} + \frac {847793 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{317214568} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________